﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="mydddd.Web.Demo.sysRolepopedom.RoleList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" FormLabelWidth="80" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="3px" ShowBorder="False" ShowHeader="False" Title="Panel" Layout="Fit">

            <Items>
                <f:Grid ID="Grid1" runat="server" Title="Grid" AllowPaging="True" AllowSorting="True" SortDirection="asc" SortField="id"
                    EnableCheckBoxSelect="true" AutoScroll="True" DataKeyNames="id" EnableTextSelection="True" CheckBoxSelectOnly="True"
                    IsDatabasePaging="True" ShowHeader="False" OnPageIndexChange="Grid1_OnPageIndexChange">
                    <Toolbars>
                        <f:Toolbar  runat="server">
                            <Items>
                                <f:Button ID="Button_add" runat="server" Icon="Add" Text="新增" OnClick="Button_add_OnClick">
                                </f:Button>
                                <f:ToolbarSeparator runat="server" />

                                <f:Button ID="Button_delete" runat="server" Icon="Delete"
                                          ConfirmText="确定要执行选中行操作吗？" Text="批量删除" OnClick="Button_delete_OnClick"/>
                                

                            
                                <f:ToolbarSeparator  runat="server" />
                                <f:Image ID="Image1" runat="server" Icon="bin"/>
                                
                                <f:CheckBox ID="cb_del"
                                    runat="server" Text="只显示删除数据"
                                    OnCheckedChanged="cb_del_OnCheckedChanged" AutoPostBack="True"
                                    EnableAjax="True" />
                                <f:ToolbarFill runat="server"/>
                                
                                <f:Button runat="server" ID="Btn_updateCache" Text="更新缓存" Icon="BrickGo" OnClick="Btn_updateCache_OnClick"></f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField HeaderText="ID" DataField="id" Width="30px" />

                        <f:BoundField HeaderText="权限角色名称" DataField="rname" Width="150px" />
                        <f:TemplateField runat="server" ID="TemplateField4" HeaderText="操作" Width="80px">
                            <ItemTemplate>
                                <a href="javascript: <%#Window1.GetShowReference("roleedit.aspx?id=" +Eval("id"),"修改权限角色") %>">修改</a>
                            </ItemTemplate>
                        </f:TemplateField>
                    </Columns>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server" />
                        <f:ToolbarText runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_OnSelectedIndexChanged">
                            <f:ListItem Text="5" Value="5" />
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="15" Selected="true" Value="15" />
                            <f:ListItem Text="20" Value="20" />
                        </f:DropDownList>
                    </PageItems>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Window1" runat="server" Height="600px" Width="800px" IsModal="true" EnableMaximize="True"
            CloseAction="HidePostBack" EnableIFrame="True" Hidden="True" Icon="ApplicationFormEdit" OnClose="Window1_OnClose"
            Target="Top" EnableResize="True">
        </f:Window>

    </form>
</body>
</html>
